package Composite;

import java.util.LinkedList;
import java.util.List;

public class Manger extends Compent{

    List<Compent>list=new LinkedList<>();
    public Manger(String position,String job)
    {
      super(job, position);
    }

    @Override
    public void removeCompent(Compent compent) {
         list.add(compent);
    }

    @Override
    public void addCompent(Compent compent) {
        list.remove(compent);
    }

    @Override
    public void chek() {

    }
}
